import { createApp } from "vue";
import ElementPlus from 'element-plus'
import App from "./App.vue";
import "~/styles/index.scss";
import router from './router/router'
import "element-plus/theme-chalk/src/message.scss";
import * as ELIcons from '@element-plus/icons-vue';
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App);
// 导入所有图标并进行全局注册
for (const [key, component] of Object.entries(ELIcons)) {
    app.component(key, component)
}
// app.use(ElementPlus, { size: 'small', zIndex: 2000 })
app.use(router).use(ElementPlus, {
        locale: zhCn,
    });
app.mount("#app");
